const router = require('koa-router')()

//设置一个路由前缀，后面的路由地址都拼接在前缀地址后面
router.prefix('/users')

router.get('/', function (ctx, next) {
  ctx.body = 'this is a users response!'
})

router.get('/bar', function (ctx, next) {
  ctx.body = 'this is a users/bar response'
})

module.exports = router
